package com.superm.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 角色表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Role {
    private Integer rid;
    private String  rName;
    private String  rCreator;
    private Date rTime;
    private String rState;
    private String remark;
    private String permissionId;
    private List<Integer> perid;//权限id集合
    /**
     *角色的多个权限
     */
    private List<Permission> permissions;
    public List<Integer> getPerid() {
        return perid;
    }

    public void setPerid(List<Integer> perid) {
        this.perid = perid;
    }

    public List<Permission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<Permission> permissions) {
        this.permissions = permissions;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getrName() {
        return rName;
    }

    public void setrName(String rName) {
        this.rName = rName;
    }

    public String getrCreator() {
        return rCreator;
    }

    public void setrCreator(String rCreator) {
        this.rCreator = rCreator;
    }

    public Date getrTime() {
        return rTime;
    }

    public void setrTime(Date rTime) {
        this.rTime = rTime;
    }

    public String getrState() {
        return rState;
    }

    public void setrState(String rState) {
        this.rState = rState;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(String permissionId) {
        this.permissionId = permissionId;
    }
}
